package com.ruoyi.marketing.domain;

import lombok.*;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 营销任务对象 marketing_task
 *
 * @author hao
 * @date 2023-01-30
 */
@Setter
@Getter
@NoArgsConstructor
@AllArgsConstructor
@ToString
@TableName("marketing_task")
public class MarketingTask extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 任务id */
    @TableId(type = IdType.AUTO)
    @TableField("task_id")
    private Long taskId;

    /**
     * 活动id
     */
    @TableField("activity_id")
    private Long activityId;

    /** 任务名称 */
    @Excel(name = "任务名称")
    @TableField("task_name")
    private String taskName;

    /** 可完成功能 */
    @Excel(name = "可完成功能")
    @TableField("completable")
    private Long completable;

    /** 参与限制 */
    @Excel(name = "参与限制")
    @TableField("participation")
    private Long participation;

    /** 次数限制 */
    @Excel(name = "次数限制")
    @TableField("limit_of_times")
    private Long limitOfTimes;
}
